package com.example.car.service.Impl;

import com.example.car.entity.Driver;
import com.example.car.mapper.DriverMapper;
import com.example.car.params.UserParams;
import com.example.car.service.DriverService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DriverServiceImpl implements DriverService {

    @Autowired
    private DriverMapper driverMapper;

    @Override
    public List<Driver> getDriverList() {
//        Criteria criteria = new Criteria();
//
//        String name = memberParams.getName();
//        if(!StringUtils.isBlank(name)) {
//            criteria.where("name").regex(".*?\\" + name + ".*");
//        }

        List<Driver> list = driverMapper.getDriverList();
        return list;
    }

    @Override
    public Driver getDriverInfo(String driverId) {
        return driverMapper.getDriverInfo(driverId);
    }


}
